#ifndef MAINWINDOWFRAME_H
#define MAINWINDOWFRAME_H

#include <QFrame>
#include <QFuture>
#include <QCloseEvent>

namespace Ui {
class MainWindowFrame;
}

class MainWindowFrame : public QFrame
{
    Q_OBJECT

public:
    explicit MainWindowFrame(QWidget *parent = 0);
    ~MainWindowFrame();

    void showVideo();
    void testDelete();

private slots:
    void on_cameraBtn_clicked();

    void on_toolBtnListen_clicked();

private:
    Ui::MainWindowFrame *ui;
    bool _cameraFlag;
    QFuture<void> _fut;
    QMutex _mutex;
    char *_data;
};

#endif // MAINWINDOWFRAME_H
